package org.wm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.wm.domain.SysJobLog;
import org.wm.mapper.SysJobLogMapper;
import org.wm.service.ISysJobLogService;

import java.util.List;

/**
 * 定时任务调度日志信息 服务层实现
 * (已按照 Mybatis-Plus 混合模式进行改造)
 */
@RequiredArgsConstructor
@Service
public class SysJobLogServiceImpl extends ServiceImpl<SysJobLogMapper, SysJobLog> implements ISysJobLogService {

    @Override
    public IPage<SysJobLog> selectJobLogPage(Page<SysJobLog> page, SysJobLog jobLog) {
        return baseMapper.selectJobLogList(page, jobLog);
    }

    @Override
    public List<SysJobLog> selectJobLogAll() {
        return baseMapper.selectJobLogAll();
    }

    @Override
    public void cleanJobLog() {
        baseMapper.cleanJobLog();
    }
}